import Vue from 'vue'
import App from './App.vue'
import router from './router'

import '@/utils/element'
import '@/utils/quill'
import '@/styles/index.css'

// 引入自行封装的几个通用组件
import HeadCrumbs from '@/components/headCrumbs'
import HmChannel from '@/components/hmChannel'
import HmPicture from '@/components/hmPicture'

Vue.component('head-crumbs', HeadCrumbs)
Vue.component('hm-channel', HmChannel)
Vue.component('hm-picture', HmPicture)

Vue.config.productionTip = false

// 创建一个事件总线
const bus = new Vue()
Vue.prototype.$bus = bus

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
